package com.qf.dao.sys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.qf.api.sys.entity.SysMenuEntity;
import com.qf.api.sys.vo.MenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: sin
 * @Date: 2025/5/7 15:27
 * @Description:
 **/
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    List<SysMenuEntity> listMenu(@Param(Constants.WRAPPER) Wrapper wrapper);

    SysMenuEntity selectByParentId(@Param("pid") Long pid);

    List<MenuVO> selectMenuOptions();

    String selectPermByPathAndType(@Param("path") String path, @Param("method") String method);
}
